package com.ruoyi.stuclient.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.stuclient.domain.EwcHomework;
import com.ruoyi.stuclient.domain.vo.EwcHomeworkAnalysisVo;
import com.ruoyi.stuclient.domain.vo.EwcHomeworkVo;
import com.ruoyi.stuclient.mapper.EwcHomeworkMapper;
import com.ruoyi.stuclient.service.IEwcHomeworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 课后作业Service业务层处理
 * 
 * @author zsp
 * @date 2025-05-05
 */
@Service
public class EwcHomeworkServiceImpl extends ServiceImpl<EwcHomeworkMapper, EwcHomework> implements IEwcHomeworkService {

    @Autowired
    private EwcHomeworkMapper ewcHomeworkMapper;

    @Override
    public List<EwcHomeworkVo> getHomeworkListInfo(String studentId, String homeworkType, String homeworkTitle) {
        return ewcHomeworkMapper.getHomeworkListInfo(studentId,homeworkType,homeworkTitle);
    }

    @Override
    public EwcHomeworkAnalysisVo getHomeworkDetailInfo(String studentId, String homeworkId) {
        return ewcHomeworkMapper.getHomeworkDetailInfo(studentId,homeworkId);
    }
}
